{include file="public/layout" /}
<body class="bodystyle" style="cursor: default; -moz-user-select: inherit;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
{include file="member/left" /}
<div class="page min-hg-c-10" style="min-width:auto;margin-left:100px;">
    {include file="users_score/bar" /}
    <div class="flexigrid">
        <div class="mDiv pt0">
            <form class="navbar-form form-inline" action="{:url('UsersScore/index')}" method="get" onsubmit="layer_loading('正在处理');">
                {$searchform.hidden|default=''}
                <div class="sDiv">
                    <div class="sDiv2">
                        <input type="text" name="add_time_begin" id="add_time_begin" value="{$Request.param.add_time_begin}" class="qsbox" autocomplete="off" placeholder="起始日期">
                    </div>
                    &nbsp;至&nbsp;
                    <div class="sDiv2">
                        <input type="text" name="add_time_end" id="add_time_end" value="{$Request.param.add_time_end}" class="qsbox" autocomplete="off" placeholder="结束日期">
                    </div>
                    <div class="sDiv2">
                        <input type="text" size="30" name="keywords" value="{$Request.param.keywords}" class="qsbox" placeholder="搜索用户名...">
                        <input type="submit" class="btn" value="搜索">
						<i class="iconfont e-sousuo"></i>
                    </div>
                </div>
            </form>
        </div>
        <div class="hDiv">
            <div class="hDivBox">
                <table cellspacing="0" cellpadding="0" style="width: 100%">
                    <thead>
                    <tr>
                        <th class="sign w40 none" axis="col0">
                            <div class="tc">选择</div>
                        </th>
                        <th abbr="article_show" axis="col5" class="w60">
                            <div class="tc">序号</div>
                        </th>
                        <th abbr="article_title" axis="col3">
                            <div class="pdl10">用户名</div>
                        </th>
                        <th abbr="score" axis="col4" class="w120">
                            <div class="tc">积分</div>
                        </th>
                        <th abbr="devote" axis="col4" class="w120">
                            <div class="tc">贡献值</div>
                        </th>
                        
                        <th abbr="article_time" axis="col6" class="w200">
                            <div class="tc">获得途径</div>
                        </th>
                        
                        <th abbr="article_time" axis="col6" class="w150">
                            <div class="tc">更新时间</div>
                        </th>
                    </tr>
                    </thead>
                </table>
            </div>
        </div>
        <div class="bDiv" style="height: auto;">
            <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
                <table style="width: 100%">
                    <tbody>
                    {empty name="list"}
                        <tr>
                            <td class="no-data" align="center" axis="col0" colspan="50">
                                <div class="no_row">
                                    <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
                                </div>
                            </td>
                        </tr>
                    {else/}
                        {foreach name="list" item="vo" key="k" }
                        <tr>
                            <td class="sign none">
                                <div class="w40 tc"><input type="checkbox" autocomplete="off" name="ids[]" value="{$vo.id}"></div>
                            </td>
                            <td class="sort">
                                <div class="w60 tc">
                                    {if condition="$pager->nowPage > 1"}
                                        {$pager->listRows * ($pager->nowPage-1) + $k+1}
                                    {else /}
                                        {$k+1}
                                    {/if}
                                </div>
                            </td>
                            <td style="width: 100%">
                                <div class="pdl10">
                                    <a href="javascript:void(0);" data-href="{:url('Member/users_edit', ['id'=>$vo.users_id, 'iframe'=>1,'layer'=>1])}" onclick="openFullframe(this, '会员详情', '100%', '100%');">
                                        <img src="{$vo.head_pic|get_head_pic=###,false,$vo['sex']}" alt="" style="max-width: 35px;">  &nbsp;&nbsp;{$vo.nickname}
                                    </a>
                                </div>
                            </td>
                            <td>
                                <div class="w120 tc">
                                    {$vo.score}
                                </div>
                            </td>
                            <td>
                                <div class="w120 tc">
                                    {$vo.devote}
                                </div>
                            </td>
                            <td>
                                <div class="tc w200">
                                    {$vo.info}
                                </div>
                            </td>
                            <td class="">
                                <div class="w150 tc">
                                    {$vo.update_time|date='Y-m-d H:i:s',###}
                                </div>
                            </td>
                        </tr>
                        {/foreach}
                    {/empty}
                    </tbody>
                </table>
            </div>
        </div>
        {notempty name="list"}
        <div class="footer-oper">
            {include file="public/page" /}
            <div style="clear:both"></div>
        </div>
        {/notempty}
    </div>
</div>
<script>
    $(document).ready(function(){
        // 表格行点击选中切换
        $('#flexigrid > table>tbody >tr').click(function(){
            $(this).toggleClass('trSelected');
        });

        // 点击刷新数据
        $('.fa-refresh').click(function(){
            location.href = location.href;
        });
    });

    layui.use('laydate', function(){
        var laydate = layui.laydate;
        //执行一个laydate实例
        laydate.render({
            elem: '#add_time_begin' //指定元素
        });
        laydate.render({
            elem: '#add_time_end' //指定元素
        });
    });

</script>

{include file="public/footer" /}